Component({
  /**
   * 组件的属性列表
   */
  properties: {
    jobType:{
      type:Number,
      value:-1
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    jobType:-1,
  },

  /**
   * 组件的方法列表
   */
  methods: {
    selectJobType(e){
      this.setData({
        jobType:e.currentTarget.dataset.jobtype
      })
    },

    reset(){
      this.setData({
        jobType:-1
      })
      this.triggerEvent("jobTypeListener",{
        jobType:-1,
        reset:true
      });
    },

    config(){
      let that = this;
      this.triggerEvent("jobTypeListener",{
        jobType:that.data.jobType,
        reset:false
      });
    }
  }
})
